//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing
{
    internal class TextCharBullet : TextBullet
    {
        private string _char;

        public string Character
        {
            get { return _char; }
            set { _char = value; }
        }


        internal override void ReadXmlCore(ReadContext context)
        {
            using (var c = context.Read("buChar"))
            {
                Character = c.GetOptionalString("char");
            }
        }

        internal override void WriteXmlCore(WriteContext context)
        {
            using (WriteContext c = context.Write("buChar"))
            {
                c.SetOptionalString("char", Character);
            }
        }
    }
}